<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
</head>
<style type="text/css">
    ul.pagination li {
        float: left;
    }

    div.list-page {
        width: 400px;
        margin: 0 auto;
        text-align: center;
    }
</style>
<body>
{include file="Public/top" /}
<div class="container clearfix">
    {include file="Public/left" /}
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('admin/index/index')}">首页</a><span
                    class="crumb-step">&gt;</span><span class="crumb-name">问卷管理</span></div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <!-- <a href="{:url('add')}"><i class="icon-font"></i>新增问卷</a> -->
                        <a href="{:url('article/out')}"><i class="icon-font"></i>导出问卷</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th width="3%">ID</th>
                            <th>问卷标题</th>

                            <th>点击量</th>

                            <th>发布时间</th>
                            <th>查看</th>
                            <th>操作</th>
                        </tr>
                        {volist name="artres" id="vo"}
                        <tr>
                            <td>{$vo.id}</td>

                            <td><a href="{:url('index/article/index',array('artid'=>$vo.id))}" target="_black">{$vo.title}</a>
                            </td>

                            <td>{$vo.click}</td>

                            <td>{$vo.time|date="Y-m-d",###}</td>
                            <td>
                                <a class="link-update" href="{:url('index/article/index',array('artid'=>$vo.id))}"
                                   target="_black">查看问卷</a>
                                <a class="link-update" href="{:url('index/article/qrcode',array('artid'=>$vo.id))}"
                                   target="_black">二维码</a>

                            </td>
                            <td>
                                <!-- <a class="link-update" href="{:url('edit',array('id'=>$vo['id']))}">修改</a> -->
                                <!--  <a class="link-update" href="{:url('edit',array('id'=>$vo['id']))}">关闭</a> -->
                                <a class="link-del" onclick="return confirm('你确定要删除该文章吗？');"
                                   href="{:url('del',array('id'=>$vo['id']))}">删除</a>
                                {if condition="$vo.close eq '0'"}
                                <a class="link-del" onclick="return confirm('你确定要关闭该问卷吗？');"
                                   href="{:url('close',array('id'=>$vo['id'],'close'=>1))}">关闭</a>
                                {else}
                                <a class="link-del" onclick="return confirm('你确定要打开该问卷吗？');"
                                   href="{:url('close',array('id'=>$vo['id']))}">打开</a>
                                {/if}
                                <!-- <a class="link-update" href="http://pan.baidu.com/share/qrcode?w=300&h=300&url=http://<?php echo $_SERVER['HTTP_HOST'];?>{:url('index/article/index',array('artid'=>$vo.id))}"  target="_black">二维码</a> -->


                                <a class="link-update" href="{:url('index/count/count',array('artid'=>$vo['id']))}"
                                   target="_black">问卷统计</a>

                                <a class="link-update" href="{:url('admin/member/lst',array('articleid'=>$vo['id']))}"
                                   target="_black">指定用户参加</a>


                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <div class="list-page">{$artres->render()}</div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>